#define _CRT_SECURE_NO_WARNINGS 1
#include "Queue.h"
#include "Stack.h"
int main()
{
	/*ST st;
	STInit(&st);
	STPush(&st, 1);
	STPush(&st, 2);
	STPush(&st, 3);
	STPush(&st, 4);
	STPush(&st, 5);
	cout << "STSize(&st):" << STSize(&st) << endl;
	printf("STTop(&st):%d\n", STTop(&st));

	

	STPop(&st);
	STPop(&st);
	STPop(&st);
	cout << "STSize(&st):" << STSize(&st) << endl;

	printf("STTop(&st):%d\n", STTop(&st));
	cout << "STEmpty(&st):" << STEmpty(&st) << endl;
	STPop(&st);
	STPop(&st);
	cout << "STEmpty(&st):" << STEmpty(&st) << endl;
	STDestroy(&st);*/
	/*ST st;
	STInit(&st);
	STPush(&st, 1);
	STPush(&st, 2);
	STPush(&st, 3);
	STPush(&st, 4);
	STPush(&st, 5);

	STPrint(&st);
	printf("\n");
	printf("%d\n", STPop(&st));
	printf("%d\n", STPop(&st));

	printf("%d\n",STTop(&st));

	printf("%d\n", STEmpty(&st));
	printf("%d\n", STSize(&st));
	STDestroy(&st);*/
	/*Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	QueuePrint(&q);
	printf("%d\n",QueueSize(&q));
	printf("%d\n",QueueFront(&q));
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePrint(&q);
	printf("QueueEmpty(&q):%d",QueueEmpty(&q));
	QueueDestroy(&q);*/

	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	QueuePrint(&q);
	printf("%d\n", QueueSize(&q));
	printf("%d\n", QueueFront(&q));
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	printf("%d\n", QueueFront(&q));
	printf("%d\n", QueueSize(&q));
	printf("QueueEmpty(&q):%d\n", QueueEmpty(&q));
	QueueDestroy(&q);
	




	



	



	


	return 0;
}